<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<html:xhtml />
<div id="exportRaw" class="content input">
    <h2>Export Raw Genotypes</h2>
    <html:form action="/exportRawSubmit">
        <dl>
            <dt><bean:message key="exportRaw.runs" />:</dt>
            <dd>
                <html:select property="selectedGenotypingRun" size="6" multiple="multiple">
                    <html:optionsCollection property="genotypingRunList" value="genotypingRunID" label="label" />
                </html:select>
                <html:errors property="selectedGenotypingRun" />
            </dd>
            <dt><bean:message key="exportRaw.cohort" />:</dt>
            <dd>
                <html:select property="selectedCohort" size="6" multiple="multiple">
                    <html:optionsCollection property="cohorts" value="cohortID" label="name" />
                </html:select>
                <html:errors property="selectedCohort" />
            </dd>
            <dt>Phenotypes:</dt>
            <dd>
                <html:select property="selectedPhenotype">
                    <html:optionsCollection property="phenotypes" value="phenotypeID" label="name" />
                </html:select>
            </dd>
            <dt><bean:message key="exportRaw.snp" />:</dt>
            <dd>
                <html:textarea property="snps" title="Enter one RS Number or SNP alias on each line. Alias should be in the format -2454G/A or 3953C/T" rows="5" cols="20" />
                <html:errors property="snps" />
            </dd>
            <dt><bean:message key="exportRaw.chromo" />:</dt>
            <dd>
                <html:textarea property="chromosomes" title="Enter one chromosome on each line." rows="5" cols="20" />
                <html:errors property="chromosomes" />
            </dd>
            <dt>Format:</dt>
            <dd>
                <html:select property="format">
                    <html:option value="Plink" />
                    <html:option value="fbat" />
                </html:select>
            </dd>
            <dt><bean:message key="exportRaw.email" />:</dt>
            <dd>
                <html:text property="email"/>
                <html:errors property="email" />
            </dd>
        </dl>
        <p><html:submit property="submitType" value="Submit" /></p>
    </html:form>
</div>